<?php

//$TYPO3_CONF_VARS['BE']['installToolPassword'] = 'bacb98acf97e0b6112b1d1b650b84971'; 

$TYPO3_CONF_VARS["BE"]["forceCharset"] = 'utf-8';
$TYPO3_CONF_VARS['SYS']['setDBinit'] = 'SET NAMES utf8';

$typo_db_username = '###USER_DB###';	//  Modified or inserted by TYPO3 Install Tool.
$typo_db_password = '###PASSWORD_DB###';	//  Modified or inserted by TYPO3 Install Tool.
$typo_db_host = '###HOST###';	//  Modified or inserted by TYPO3 Install Tool.
$typo_db = '###NAME_DB###';	//  Modified or inserted by TYPO3 Install Tool.

## INSTALL SCRIPT EDIT POINT TOKEN - all lines after this points may be changed by the install script!

$TYPO3_CONF_VARS['SYS']['encryptionKey'] = '17a3cbfe483806814afe810612dc97cbb6178ac8dc9e43383968c2dcc94f60ac48dac8aeabc7c08b7775555033306098';	// Modified or inserted by TYPO3 Install Tool. 
$TYPO3_CONF_VARS['SYS']['compat_version'] = '4.5';	//  Modified or inserted by TYPO3 Install Tool.
$TYPO3_CONF_VARS['BE']['disable_exec_function'] = '0';	//  Modified or inserted by TYPO3 Install Tool.
$TYPO3_CONF_VARS['GFX']['gdlib_png'] = '1';	//  Modified or inserted by TYPO3 Install Tool.
$TYPO3_CONF_VARS['GFX']['im_combine_filename'] = 'composite';	//  Modified or inserted by TYPO3 Install Tool.
$TYPO3_CONF_VARS['GFX']['im_path'] = '/usr/local/bin/';	//  Modified or inserted by TYPO3 Install Tool.
$TYPO3_CONF_VARS['GFX']['im_version_5'] = 'im6';	//  Modified or inserted by TYPO3 Install Tool.

// Updated by TYPO3 Extension Manager 06-04-10 10:33:18
$TYPO3_CONF_VARS['GFX']['thumbnails_png'] = '';	// Modified or inserted by TYPO3 Install Tool. 
$TYPO3_CONF_VARS['GFX']['gdlib_2'] = '1';	//  Modified or inserted by TYPO3 Install Tool.
$TYPO3_CONF_VARS['GFX']['jpg_quality'] = '100';	// Modified or inserted by TYPO3 Install Tool. 
$TYPO3_CONF_VARS['SYS']['sitename'] = '###SITENAME###';	//  Modified or inserted by TYPO3 Install Tool.
$TYPO3_CONF_VARS['GFX']['im_path'] = '/usr/bin/';	//  Modified or inserted by TYPO3 Install Tool.
$TYPO3_CONF_VARS['GFX']['im_v5effects'] = '1';	// Modified or inserted by TYPO3 Install Tool. 
$TYPO3_CONF_VARS['GFX']['gif_compress'] = '0';	//  Modified or inserted by TYPO3 Install Tool.
$TYPO3_CONF_VARS['GFX']['png_truecolor'] = '1';	//  Modified or inserted by TYPO3 Install Tool.

// Updated by TYPO3 Install Tool 10-06-11 12:34:17
$TYPO3_CONF_VARS['EXT']['extList'] = 'extbase,css_styled_content,filelist,version,tsconfig_help,extra_page_cm_options,impexp,belog,setup,opendocs,install,t3editor,felogin,feedit,recycler,t3skin,reports,beuser,taskcenter,sys_action,perm,func,func_wizards,wizard_crpages,wizard_sortpages,info,info_pagetsconfig,tstemplate,tstemplate_ceditor,tstemplate_info,tstemplate_objbrowser,tstemplate_analyzer,rtehtmlarea,statictemplates,templavoila,cmd_sysfolder,tt_news,mtss,jh24_panel,sr_feuser_register,sr_freecap,div2007,kb_tv_cont_slide,accessible_form_validation,mailform_userfunc,rtelightbox,kickstarter,mt_regnipregon,about,aboutmodules,cshmanual,realurl,context_help,perfectlightboxjquery,danp_libs,danp_tagcloud,ratings,cssspamprotect,mt_elink,mt_webmenager,mtgenerator_news,realurlmanagement,ttnews_share,ttnews_youtube,sk_pagecomments,captcha,fluid,socialplugins,constantsextended,tscobj,rss2_import,newssitemap,nc_ttnews_mostpopular,ya_googlesearch';	// Modified or inserted by TYPO3 Extension Manager. 
$TYPO3_CONF_VARS['EXT']['extList_FE'] = 'extbase,css_styled_content,version,install,felogin,feedit,t3skin,rtehtmlarea,statictemplates,templavoila,cmd_sysfolder,tt_news,mtss,jh24_panel,sr_feuser_register,sr_freecap,div2007,kb_tv_cont_slide,accessible_form_validation,mailform_userfunc,rtelightbox,kickstarter,mt_regnipregon,realurl,perfectlightboxjquery,danp_libs,danp_tagcloud,ratings,cssspamprotect,mt_elink,mt_webmenager,mtgenerator_news,realurlmanagement,ttnews_share,ttnews_youtube,sk_pagecomments,captcha,fluid,socialplugins,constantsextended,tscobj,rss2_import,newssitemap,nc_ttnews_mostpopular,ya_googlesearch';	// Modified or inserted by TYPO3 Extension Manager. 
$TYPO3_CONF_VARS['EXT']['extConf']['rtehtmlarea'] = 'a:13:{s:21:"noSpellCheckLanguages";s:23:"ja,km,ko,lo,th,zh,b5,gb";s:15:"AspellDirectory";s:15:"/usr/bin/aspell";s:17:"defaultDictionary";s:2:"en";s:14:"dictionaryList";s:2:"en";s:20:"defaultConfiguration";s:105:"Typical (Most commonly used features are enabled. Select this option if you are unsure which one to use.)";s:12:"enableImages";s:1:"1";s:20:"enableInlineElements";s:1:"0";s:19:"allowStyleAttribute";s:1:"1";s:24:"enableAccessibilityIcons";s:1:"0";s:16:"enableDAMBrowser";s:1:"0";s:16:"forceCommandMode";s:1:"0";s:15:"enableDebugMode";s:1:"0";s:23:"enableCompressedScripts";s:1:"1";}';	//  Modified or inserted by TYPO3 Extension Manager.
$TYPO3_CONF_VARS['EXT']['extConf']['css_styled_content'] = 'a:2:{s:15:"setPageTSconfig";s:1:"1";s:19:"removePositionTypes";s:1:"1";}';	//  Modified or inserted by TYPO3 Extension Manager.
$TYPO3_CONF_VARS['EXT']['extConf']['templavoila'] = 'a:1:{s:7:"enable.";a:3:{s:13:"oldPageModule";s:1:"0";s:19:"selectDataStructure";s:1:"0";s:15:"renderFCEHeader";s:1:"0";}}';	//  Modified or inserted by TYPO3 Extension Manager.
$TYPO3_CONF_VARS['EXT']['extConf']['tt_news'] = 'a:20:{s:13:"useStoragePid";s:1:"1";s:17:"requireCategories";s:1:"0";s:18:"useInternalCaching";s:1:"1";s:11:"cachingMode";s:6:"normal";s:13:"cacheLifetime";s:1:"0";s:13:"cachingEngine";s:8:"internal";s:11:"treeOrderBy";s:3:"uid";s:13:"prependAtCopy";s:1:"1";s:5:"label";s:5:"title";s:9:"label_alt";s:0:"";s:10:"label_alt2";s:0:"";s:15:"label_alt_force";s:1:"0";s:21:"categorySelectedWidth";s:1:"0";s:17:"categoryTreeWidth";s:1:"0";s:25:"l10n_mode_prefixLangTitle";s:1:"1";s:22:"l10n_mode_imageExclude";s:1:"1";s:20:"hideNewLocalizations";s:1:"0";s:24:"writeCachingInfoToDevlog";s:10:"disabled|0";s:23:"writeParseTimesToDevlog";s:1:"0";s:18:"parsetimeThreshold";s:3:"0.1";}';	//  Modified or inserted by TYPO3 Extension Manager.
// Updated by TYPO3 Extension Manager 10-06-11 13:38:56

$TYPO3_CONF_VARS['MAIL']['substituteOldMailAPI'] = '0'; 
$TYPO3_CONF_VARS['BE']['debug'] = '1';

$TYPO3_CONF_VARS['EXT']['extConf']['sr_feuser_register'] = 'a:6:{s:12:"uploadFolder";s:27:"uploads/tx_srfeuserregister";s:10:"imageTypes";s:30:"png, jpg, jpeg, gif, tif, tiff";s:12:"imageMaxSize";s:3:"500";s:12:"useFlexforms";s:1:"1";s:14:"useMd5Password";s:1:"1";s:12:"usePatch1822";s:1:"0";}';	//  Modified or inserted by TYPO3 Extension Manager.
$TYPO3_CONF_VARS['EXT']['extConf']['t3s_jslidernews'] = 'a:6:{s:13:"includeJquery";s:1:"1";s:19:"includeJqueryEasing";s:1:"1";s:16:"jqueryNoConflict";s:1:"0";s:24:"moveJsFromFooterToHeader";s:1:"0";s:20:"additionalHeaderData";s:1:"0";s:16:"rootCatSinglePid";s:1:"0";}';	// Modified or inserted by TYPO3 Extension Manager. 
$TYPO3_CONF_VARS['EXT']['extConf']['wt_spamshield'] = 'a:10:{s:12:"useNameCheck";s:1:"1";s:12:"usehttpCheck";s:1:"3";s:9:"notUnique";s:0:"";s:13:"honeypodCheck";s:1:"1";s:15:"useSessionCheck";s:1:"1";s:16:"SessionStartTime";s:2:"10";s:14:"SessionEndTime";s:3:"600";s:10:"AkismetKey";s:0:"";s:12:"email_notify";s:0:"";s:3:"pid";s:1:"0";}';	// Modified or inserted by TYPO3 Extension Manager. 
$TYPO3_CONF_VARS['EXT']['extConf']['mailform_userfunc'] = 'a:2:{s:9:"splitChar";s:1:">";s:8:"no_cache";s:1:"1";}';	//  Modified or inserted by TYPO3 Extension Manager.
$TYPO3_CONF_VARS['EXT']['extConf']['realurl'] = 'a:5:{s:10:"configFile";s:26:"typo3conf/realurl_conf.php";s:14:"enableAutoConf";s:1:"1";s:14:"autoConfFormat";s:1:"0";s:12:"enableDevLog";s:1:"0";s:19:"enableChashUrlDebug";s:1:"0";}';	//  Modified or inserted by TYPO3 Extension Manager.
// Updated by TYPO3 Extension Manager 17-06-11 10:55:36



$TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT'] = array(
            'init' => array(
                'enableCHashCache' => 1,
                'appendMissingSlash' => 'ifNotFile',
                'enableUrlDecodeCache' => 1,
                'enableUrlEncodeCache' => 1,
                'respectSimulateStaticURLs' => 1,
                'postVarSet_failureMode'=>'redirect_goodUpperDir',	
            ),
        'preVars' => array(
                    ),
         'pagePath' => array(
                'type' => 'user',
                'userFunc' => 'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
                'spaceCharacter' => '-',
                'languageGetVar' => 'L',
                'expireDays' => 7,
				'rootpage_id'	=>	###ROOT###,
				'firstHitPathCache'=>1
        ),
		
          'postVarSets' => array(
                '_DEFAULT' => array(
      /**********************/
                    // news archive parameters
                    'archive' => array(
                        array(
                            'GETvar' => 'tx_ttnews[year]' ,
                            ),
                        array(
                            'GETvar' => 'tx_ttnews[month]' ,
                                'valueMap' => array(
                                'styczen' => '01',
                                'luty' => '02',
                                'marzec' => '03',
                                'kwiecien' => '04',
                                'maj' => '05',
                                'czerwiec' => '06',
                                'lipiec' => '07',
                                'sierpien' => '08',
                                'wrzesien' => '09',
                                'pazdziernik' => '10',
                                'listopad' => '11',
                                'grudzien' => '12',
                                )
                            ),
                        ),
    				// mm_forum
					
                    'temat' => array(
                            array(
                                    'GETvar' => 'tx_mmforum_pi1[tid]',
									'lookUpTable' => array(
									'table' => 'tx_mmforum_topics',
									'id_field' => 'uid',
									'alias_field' => 'topic_title',
									'addWhereClause' => ' AND NOT deleted',
									'useUniqueCache' => 1,
									'useUniqueCache_conf' => array(
										'strtolower' => 1,
										'spaceCharacter' => '-',
										),
									),
							)
						),
						
                    'forum' => array(
                            array(
                                    'GETvar' => 'tx_mmforum_pi1[fid]',
									'lookUpTable' => array(
									'table' => 'tx_mmforum_forums',
									'id_field' => 'uid',
									'alias_field' => 'forum_name',
									'addWhereClause' => ' AND NOT deleted',
									'useUniqueCache' => 1,
									'useUniqueCache_conf' => array(
										'strtolower' => 1,
										'spaceCharacter' => '-',
										),
									),
							)
						),
						
                    'topic' => array(
                        array(
                            'GETvar' => 'tx_mmforum_pi1[action]',
                            ),
                        ),
						
					// news search/tags
                    'szukaj' => array(
                        array(
                            'GETvar' => 'tx_ttnews[swords]',
                            ),
                        ),
						
                     // news pagebrowser
                    'strona' => array(
                        array(
                            'GETvar' => 'tx_ttnews[pointer]',
                            ),
                        ),
                        
                    // news categories						
                    'kategorie' => array(
                            array(
                                    'GETvar' => 'tx_ttnews[cat]',
									'lookUpTable' => array(
									'table' => 'tt_news_cat',
									'id_field' => 'uid',
									'alias_field' => 'title',
									'addWhereClause' => ' AND NOT deleted',
									'useUniqueCache' => 1,
									'useUniqueCache_conf' => array(
										'strtolower' => 1,
										'spaceCharacter' => '-',
										),
									),
							)
						),
						
                    // news articles and searchwords
					
                    'tresc' => array(
                            array(
                                    'GETvar' => 'tx_ttnews[tt_news]',
									'lookUpTable' => array(
									'table' => 'tt_news',
									'id_field' => 'uid',
									'alias_field' => 'title',
									'addWhereClause' => ' AND NOT deleted',
									'useUniqueCache' => 1,
									'useUniqueCache_conf' => array(
										'strtolower' => 1,
										'spaceCharacter' => '-',
										),
									),
								)
							),
						),
					
       /*******************************/
                ),
				'fileName' => array(
             'index' => array(
                  'rss.xml' => array(
                       'keyValues' => array(
                            "type" => "101",
                        ),
                    ), 
					'news_sitemap.xml' => array(
                    'keyValues' => array(
                        'type' => 210,
                   		),
					),
                // 'index.html' => array(
                // 'keyValues' => array(),
                // ),
                ),
            // add .html suffix to the end of the path generated
            'defaultToHTMLsuffixOnPrev' => 1,
            ),

      );


// Updated by TYPO3 Extension Manager 17-06-11 12:04:56

###DOMAIN_LIST###

if(!stristr($_SERVER['SCRIPT_FILENAME'],'/typo3'))
{
	$allmt_domain=array_keys($TYPO3_CONF_VARS['EXTCONF']['realurl']);	
	if(!in_array($_SERVER['SERVER_NAME'],$allmt_domain)) 
	{
		foreach($allmt_domain as $key => $search_needle) 
		{				
			$check_name=$_SERVER['SERVER_NAME'];				
		   if(stristr($check_name, $search_needle) != FALSE) 
		   {
			  header("HTTP/1.1 301 Moved Permanently");
			  header("Location: http://".$search_needle);
			  exit;
		   }
		}
		header("HTTP/1.0 404 Not Found");
		exit;
	}
}
?>